package cn.btks.resultintegration.rule.service.impl;

import cn.btks.resultintegration.rule.pojo.TwoHighForthCategory;
import cn.btks.resultintegration.rule.repository.TwoHighForthCategoryRepository;
import cn.btks.resultintegration.rule.service.TwoHighForthCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author lijun
 * @Date 2021/10/15 10:15
 */
@Service
public class TwoHighForthCategoryServiceImpl implements TwoHighForthCategoryService {

    @Autowired
    TwoHighForthCategoryRepository twoHighForthCategoryRepository;

    @Override
    public List<TwoHighForthCategory> findAllByParentId(Long parentId) {
        return twoHighForthCategoryRepository.findAllByParentId(parentId);
    }
}
